﻿using Microsoft.Xrm.Sdk;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AccessTeamWorkflow.CommonHelpers
{
    internal static class Helpers
    {
        public static void Throw(string message, Exception innerException = null)
        {
            if (innerException == null)
            {
                throw new InvalidPluginExecutionException(message);
            }
            else
            {
                throw new InvalidPluginExecutionException(message, innerException);
            }
        }
    }
}
